<?php
$id = $_GET[id];
require_once 'taobao_sdk_php/TopSdk.php';

$c = new TopClient;
$c->appkey = 12365159;
$c->secretKey = "b7a746a772b4bcd36a6bfdcc7cae4bc7";
$req = new ItemGetRequest;
$req->setFields("detail_url,num_iid,title,pic_url,num,delist_time,price,approve_status,product_id,auction_point,item_img,prop_img,is_virtual");
$req->setNumIid($id);
$resp = $c->execute($req, '');
echo json_encode($resp->item);
//echo $id.' ||  qq'
?>
